<!-- IF S_CHAT_ERROR -->
<!-- IF S_CHAT_PHP -->
	<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->

<table class="tablebg" cellspacing="1" width="100%">
	<tr>
		<th colspan="2">&nbsp;{CHAT_ERROR_MESSAGE}&nbsp;</th>
	</tr>
</table>

<!-- IF S_CHAT_PHP -->
	<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->
<!-- ELSE -->
<!-- IF S_GET_CHAT && !S_CHAT_ERROR -->
	<!-- IF S_READ or S_ADD -->
		<!-- BEGIN chatrow -->
			<div id="p{chatrow.MESSAGE_ID}">
				<table class="tablebg" cellpadding="6" cellspacing="0" width="100%">
					<tr class="row{chatrow.CLASS}">
						<td>
							<!-- IF U_ACP or U_MCP --><a href="javascript:void({chatrow.MESSAGE_ID})" title="{L_DELETE_POST}" onclick="delete_post('{chatrow.MESSAGE_ID}')"><img src="{T_IMAGESET_LANG_PATH}/icon_post_delete.gif" /></a> <!-- ENDIF -->
							 <b class="postauthor">{chatrow.USERNAME_FULL}</b> « {chatrow.TIME} » &nbsp; <span class="postbody">{chatrow.MESSAGE}</span>
						</td>
					</tr>
					
				</table>
			</div>
		<!-- END chatrow -->---{LAST_ID}
	<!-- IF S_WHOISONLINE -->---
			<!-- BEGIN whoisrow -->
				<div><img src="{T_IMAGESET_PATH}/{whoisrow.USER_STATUS}.png" class="online_img" /> {whoisrow.USERNAME_FULL}</div>
			<!-- END whoisrow -->---{LAST_TIME}---{DELAY}---{LAST_POST}
		<!-- ENDIF -->
	<!-- ENDIF -->
<!-- ELSE -->
	<!-- IF S_CHAT -->
		<!-- INCLUDE overall_header.html -->
	<!-- ENDIF -->
	<script type="text/javascript" src="demon_chat.js"></script>
	<style type="text/css">
	<!--
		.box
		{
			width: 100%;
			margin-left: auto;
			margin-right: auto;
		}
		.shouts {
			width: 100%;
			height:300px;
			overflow:auto;
		}
		#chat {
			width: 100%;
			text-align:left;
		}
		#message {
			width: 65%;
		}
		#whois_online{
			vertical-align:text-top;
			text-align:left;
		}
		.online_img {
			vertical-align:middle;
		}	
		#act_indicator {
			visibility:hidden;
		}
	-->
	</style>
	<div class="box">
		<table class="tablebg" cellspacing="1" width="100%">
				<tr>
					<th align="center" colspan="2">{SITENAME} {L_CHAT}</th>
				</tr>
				<tr>
					<td>
					<!-- IF S_USER_LOGGED_IN -->
					<form name="postform" id="text" method="post" action="javascript:void(0);" onsubmit="handle_send('add', this)">
						<table width="100%">

				<!-- INCLUDE posting_buttons2.html -->
				<tr>
					<td align="center" class="cat nav" width="85%">
					
					<!-- IF S_SMILIES_ALLOWED and .smiley -->					
						<a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
					<!-- ENDIF -->
					<br />
					{L_MESSAGE}: 
						<input type="text" tabindex="1" name="message" id="message" class="inputbox" size="28" />
						<input class="btnmain" type="submit" name="submit" value="{L_SUBMIT}" />
					</td>
					
				</tr>
				</table>
			</form>
			</td>
			<td align="center" class="cat nav" width="15%">{L_ONLINE_LIST}</td>
			</tr>
			<!-- ENDIF -->
			<tr>
				<td class="row3" style="text-align:left;" height="220">
					<div class="shouts">
						<div id="chat">
							<!-- BEGIN chatrow -->
								<div id="p{chatrow.MESSAGE_ID}">
									<table class="tablebg" cellpadding="6" cellspacing="0" width="100%">
										<tr class="row{chatrow.CLASS}">
											<td>
												<!-- IF U_ACP or U_MCP -->
													<a href="javascript:void({chatrow.MESSAGE_ID})" title="{L_DELETE_POST}" onclick="delete_post('{chatrow.MESSAGE_ID}')">
														<img src="{T_IMAGESET_LANG_PATH}/icon_post_delete.gif" />
													</a> 
												<!-- ENDIF -->
												<b class="postauthor">{chatrow.USERNAME_FULL}</b> « {chatrow.TIME} » &nbsp; <span class="postbody">{chatrow.MESSAGE}</span>
											</td>
										</tr>
										
									</table>
								</div>
							<!-- END chatrow -->
						</div>
					</div>
				</td>
				<td class="row1" nowrap="nowrap">
					<div class="shouts">
						<div id="whois_online">
							<!-- BEGIN whoisrow -->
								<div><img src="{T_IMAGESET_PATH}/{whoisrow.USER_STATUS}.png" class="online_img" /> {whoisrow.USERNAME_FULL}</div>
							<!-- END whoisrow -->
						</div>
					</div>
				</td>
			</tr>
			<tr>
				<td class="cat" colspan="2" align="center">
					<img src="{T_IMAGESET_PATH}/act_indicator.gif" id="act_indicator" />
					<strong>• {L_UPDATES} <span id="update_seconds">{DELAY}</span> {L_UNIT}</strong>
				</td>
			</tr>
		</table>
	</div>
	<!-- IF S_CHAT -->
		<!-- INCLUDE overall_footer.html -->
	<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->

<br />